package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.model.YgReturnOrderInfoModel;
import com.ygqh.baby.model.YgReturnOrderModel;
import com.ygqh.baby.po.YgReturnOrder;
import com.ygqh.baby.po.YgReturnOrderExample;

@Mapper
public interface YgReturnOrderMapper {
	int countByExample(YgReturnOrderExample example);

	int deleteByExample(YgReturnOrderExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgReturnOrder record);

	int insertSelective(YgReturnOrder record);

	List<YgReturnOrder> selectByExample(YgReturnOrderExample example);

	YgReturnOrder selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgReturnOrder record, @Param("example") YgReturnOrderExample example);

	int updateByExample(@Param("record") YgReturnOrder record, @Param("example") YgReturnOrderExample example);

	int updateByPrimaryKeySelective(YgReturnOrder record);

	int updateByPrimaryKey(YgReturnOrder record);

	List<YgReturnOrderModel> selectReturnList(@Param("userId") Long userId, @Param("limit") int limit);

	YgReturnOrderInfoModel selectReturnOrderInfo(@Param("returnCode") String returnCode, @Param("userId") Long userId);
}